package com.woniu.service;

import com.woniu.entity.RbacManager;
import com.woniu.entity.RbacManagerDTO;
import com.woniu.entity.ResponseEntity;

import java.util.List;
import java.util.Map;

/**
 * @Author: 马宇航
 * @Description: 用户管理的业务层
 * @DateTime: 22/08/22/0022 10:54
 * @Component: 成都蜗牛学苑
 **/
public interface RbacManagerService {
    RbacManager findOne(int id);

    ResponseEntity findAll(int pageNum, int pageSize);

    int addOne(RbacManager rbacManager);

    int updateOne(RbacManager rbacManager);

    int deleteOne(int id);

    ResponseEntity findByrbacManagerDTO(RbacManagerDTO rbacManagerDTO, int pageNum, int pageSize);

    List<RbacManager> findByIds(Integer[] ids);

    int addOneForMap(Map<String, Object> userinfo);

    int findCount(RbacManager rbacManager);

    RbacManager findOneByName(String username);

    ResponseEntity editStatus(int id);


    ResponseEntity initPwd(int id);

    ResponseEntity updateRole(RbacManagerDTO rbacManagerDTO);
}
